package com.wly.login.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wly.login.user.entity.User;

public interface UserService extends IService<User> {

	/**
	 * 根据姓名判断用户是否存在
	 *
	 * @param username 用户名
	 * @author wly
	 * @date 2025-02-24
	 */
	User findByUsername(String username);

	/**
	 * 判断手机号是否村子啊
	 *
	 * @param phone 手机号
	 * @author wly
	 * @date 2025-02-24
	 */
	User findByPhone(String phone);

	/**
	 * 判断手机号是否存在
	 *
	 * @param email 邮箱
	 * @author wly
	 * @date 2025-02-24
	 */
	User findByEmail(String email);
}
